package com.itheima.demo02;

public class LambdaDemo {

    public static void main(String[] args) {

        int c = useCalculator((int a , int b) -> {
            return a+b;
        });

        System.out.println(c);
    }

    public static int useCalculator(Calculator calculator){



        return calculator.sum(12,23);
    }
}
